<?php require_once './connection.php'; ?>
<html>

    <?php
    $sql = 'SELECT * FROM staffs';
    $staffs = query($sql);
    ?>
    <table width="300px" border="1">
        <tr>
            <td colspan="2"><h2>STAFFS</h2></td>
               
        </tr>
        <tr>
            <td width="50">ID</td>
            <td>NAME</td>
        </tr>    
    <?php foreach ($staffs as $Staff):?>
        <tr>
            <td width="50"><?php echo $Staff['id'] ?></td>
            <td><?php echo $Staff['name'] ?></td>
        </tr>
    <?php    endforeach;?>
      </table>
</html>

